package com.puti.doctor.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.puti.doctor.domain.vo.EvaluationVo;
import com.puti.doctor.mapper.PatientDoctorEvaluationMapper;
import com.puti.doctor.service.IPatientDoctorEvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatientDoctorEvaluationServiceImpl implements IPatientDoctorEvaluationService {
    @Autowired
    private PatientDoctorEvaluationMapper patientDoctorEvaluationMapper;
    @Override
    public EvaluationVo findEvaluation(Long recordId) {
        return patientDoctorEvaluationMapper.findEvaluation(recordId);
    }

    @Override
    public Page findEvaluationTime(String recordTime, Long doctorId,int page,int pageSize) {
        PageHelper.startPage(page,pageSize);
        return (Page) patientDoctorEvaluationMapper.findEvaluationTime(recordTime, doctorId);
    }
}
